import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class CartEmptyPage extends StatefulWidget {
  @override
  _CartEmptyPageState createState() => _CartEmptyPageState();
}

class _CartEmptyPageState extends State<CartEmptyPage> {
  @override
  Widget build(BuildContext context) {
    int commodity=0;
    List s=['ss','fds','sss','sda'];
    return
        Scaffold(
          appBar:AppBar(
            title: Text("购物车"+'($commodity)',style: TextStyle(fontWeight: FontWeight.w900),),
            centerTitle: true,
          actions: <Widget>[
            Container(padding:EdgeInsets.all(10),alignment: Alignment.center,child:Text("管理",style: TextStyle(fontSize:18,fontWeight: FontWeight.w400)))

          ],
            elevation: 0,),
          //判断如果商品为0
          body:commodity==0?Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: <Widget>[
              Center(child: 
              Image.asset('assets/images/kongkong.png',height: 180,width: 180,)
              ),
              Center(child: Text('购物车空空如也',style: TextStyle(fontWeight: FontWeight.w900,fontSize: 20,color: Colors.black54)))
            ],
          ):Container(

          ) ,
        );
  }
}
